﻿using AbpOne.Application.Contracts.Blog;
using AbpOne.Domain.Blog;
using AutoMapper;

namespace AbpOne.Application {
    public class AbpOneAutoMapperProfile : Profile {
        public AbpOneAutoMapperProfile() {
            CreateMap<Post, PostDto>();
            CreateMap<PostDto, Post>().ForMember(item => item.Id, 
                opt => opt.Ignore());
        }
    }
}